package com.atguigu.gmall.service;

import com.atguigu.gmall.bean.manage.PmsBaseCatalog1;
import com.atguigu.gmall.bean.manage.PmsBaseCatalog2;
import com.atguigu.gmall.bean.manage.PmsBaseCatalog3;

import java.util.List;

public interface CatalogService {
    /**
     * 查看所有一级分类
     * @return
     */
    List<PmsBaseCatalog1> getCatalog1();
    /**
     * 根据一级分类id 查看所有二级分类
     * @param catalog1Id
     * @return
     */
    List<PmsBaseCatalog2> getCatalog2(String catalog1Id);
    /**
     * 根据二级分类id 查看所有三级分类
     *
     * @param catalog2Id
     * @return
     */
    List<PmsBaseCatalog3> getCatalog3(String catalog2Id);
}
